package edu.cdnu.common.dto;

/**
 * 分析数据用的Dto
 * @author ASUS AsingZ
 */
public class ChapterRecordDto {
	private Integer id;
	/**
	 * 目录文本
	 */
	private String catalogueText;
	/**
	 * 目录顺序
	 */
	private Integer catalogueOrder;
	/**
	 * 上一级目录id，一级目录id为0
	 */
	private Integer parentId;
	/**
	 * 状态，用于标识所属，0-禁用，1-课程章节，2-资源目录
	 */
	private Integer state;
	/**
	 * 所属课程
	 */
	private Integer courseId;
	
	/**
	 * 记录查看次数
	 */
	private Integer download;

	public ChapterRecordDto() {
		super();
	}

	public ChapterRecordDto(Integer id, String catalogueText, Integer catalogueOrder, Integer parentId, Integer state,
			Integer courseId, Integer download) {
		super();
		this.id = id;
		this.catalogueText = catalogueText;
		this.catalogueOrder = catalogueOrder;
		this.parentId = parentId;
		this.state = state;
		this.courseId = courseId;
		this.download = download;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCatalogueText() {
		return catalogueText;
	}

	public void setCatalogueText(String catalogueText) {
		this.catalogueText = catalogueText;
	}

	public Integer getCatalogueOrder() {
		return catalogueOrder;
	}

	public void setCatalogueOrder(Integer catalogueOrder) {
		this.catalogueOrder = catalogueOrder;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getCourseId() {
		return courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public Integer getDownload() {
		return download;
	}

	public void setDownload(Integer download) {
		this.download = download;
	}

	@Override
	public String toString() {
		return "ChapterRecordDto [id=" + id + ", catalogueText=" + catalogueText + ", catalogueOrder=" + catalogueOrder
				+ ", parentId=" + parentId + ", state=" + state + ", courseId=" + courseId + ", download=" + download
				+ "]";
	}
	
	
	
}
